package com.docker.drug.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.docker.drug.mapper.DoctorDrugInventoryIntermediateMapper;
import com.docker.drug.domain.DoctorDrugInventoryIntermediate;
import com.docker.drug.service.IDoctorDrugInventoryIntermediateService;

/**
 * 药品盘点中间Service业务层处理
 * 
 * @author lin
 * @date 2025-04-15
 */
@Service
public class DoctorDrugInventoryIntermediateServiceImpl implements IDoctorDrugInventoryIntermediateService 
{
    @Autowired
    private DoctorDrugInventoryIntermediateMapper doctorDrugInventoryIntermediateMapper;

    /**
     * 查询药品盘点中间
     * 
     * @param id 药品盘点中间主键
     * @return 药品盘点中间
     */
    @Override
    public DoctorDrugInventoryIntermediate selectDoctorDrugInventoryIntermediateById(Long id)
    {
        return doctorDrugInventoryIntermediateMapper.selectDoctorDrugInventoryIntermediateById(id);
    }

    /**
     * 查询药品盘点中间列表
     * 
     * @param doctorDrugInventoryIntermediate 药品盘点中间
     * @return 药品盘点中间
     */
    @Override
    public List<DoctorDrugInventoryIntermediate> selectDoctorDrugInventoryIntermediateList(DoctorDrugInventoryIntermediate doctorDrugInventoryIntermediate)
    {
        return doctorDrugInventoryIntermediateMapper.selectDoctorDrugInventoryIntermediateList(doctorDrugInventoryIntermediate);
    }

    /**
     * 新增药品盘点中间
     * 
     * @param doctorDrugInventoryIntermediate 药品盘点中间
     * @return 结果
     */
    @Override
    public int insertDoctorDrugInventoryIntermediate(DoctorDrugInventoryIntermediate doctorDrugInventoryIntermediate)
    {
        return doctorDrugInventoryIntermediateMapper.insertDoctorDrugInventoryIntermediate(doctorDrugInventoryIntermediate);
    }

    /**
     * 修改药品盘点中间
     * 
     * @param doctorDrugInventoryIntermediate 药品盘点中间
     * @return 结果
     */
    @Override
    public int updateDoctorDrugInventoryIntermediate(DoctorDrugInventoryIntermediate doctorDrugInventoryIntermediate)
    {
        return doctorDrugInventoryIntermediateMapper.updateDoctorDrugInventoryIntermediate(doctorDrugInventoryIntermediate);
    }

    /**
     * 批量删除药品盘点中间
     * 
     * @param ids 需要删除的药品盘点中间主键
     * @return 结果
     */
    @Override
    public int deleteDoctorDrugInventoryIntermediateByIds(Long[] ids)
    {
        return doctorDrugInventoryIntermediateMapper.deleteDoctorDrugInventoryIntermediateByIds(ids);
    }

    /**
     * 删除药品盘点中间信息
     * 
     * @param id 药品盘点中间主键
     * @return 结果
     */
    @Override
    public int deleteDoctorDrugInventoryIntermediateById(Long id)
    {
        return doctorDrugInventoryIntermediateMapper.deleteDoctorDrugInventoryIntermediateById(id);
    }
}
